<?php
/**
 * @category   Ahs
 * @package    Ahs_Amf
 * @subpackage Auth
 * @author Thibaut Cromphaut, Gaïtano Boeraeve, Mathias Helin, Dimitry Dierickx
 * @copyright  Copyright (c) 2011 Artevelde University College Ghent 
 */

class Ahs_Amf_Auth extends Zend_Amf_Auth_Abstract
{
    public function authenticate()
    {
        $adapter = new Ahs_Auth_Adapter_DbTable();
        $adapter->setIdentity($this->_username)
                ->setCredential($this->_password)
        ;
        $auth = Zend_Auth::getInstance();

        return $auth->authenticate($adapter);
    }
}
?>
